<?php namespace system\model;
use hdphp\model\Model;

class Button extends Model{
	//数据表
	protected $table = "button";

	//自动验证
	protected $validate=[
		['data','required','菜单数据不能为空',self::MUST_VALIDATE,self::MODEL_BOTH],
		['name','required','菜单名称不能为空',self::MUST_VALIDATE,self::MODEL_BOTH]
	];

	//自动完成
	protected $auto=[
		['status',0,'string',self::MUST_AUTO,self::MODEL_INSERT]
	];
}